home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et3_0-a1.lha / et3 / src / Region.h < prev    next >
C/C++ Source or Header  |  1992-06-12  |  633b  |  34 lines

  1. #ifndef Region_First
  2. #ifdef __GNUG__
  3. //pragma once
  4. #pragma interface
  5. #endif
  6. #define Region_First
  7.  
  8. #include "Rectangle.h"
  9. #include "Storage.h"
  10.  
  11. //---- Region ------------------------------------------------------------------
  12.  
  13. class Region {
  14. public:
  15.     int size;
  16.     Rectangle *rl, bbox;
  17. public:
  18.     Region();
  19.     Region(Rectangle &r);
  20.     ~Region();
  21.     void Merge(Rectangle);
  22.     Rectangle *GetAt(int ix);
  23.     void operator=(Region &r);
  24.     void Empty();
  25.  
  26.     //---- memory allocation
  27.     void *operator new (size_t sz)
  28.     { return Storage::ChunkAlloc(sz); }
  29.     void operator delete(void *vp)
  30.     { Storage::ChunkFree(vp); }
  31. };
  32.  
  33. #endif
  34.